﻿using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Web.Models.VersionData
{
    /// <summary>
    /// 
    /// </summary>
    [Table("versions")]
    public class Versions
    {
        /// <summary>
        /// 消息唯一标识
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Column("id")]
        public Guid Id { get; set; }
        
        /// <summary>
        /// 版本库ID
        /// </summary>
        [Column("versionLibId")]
        public String VersionLibId { get; set; }

        /// <summary>
        /// 更新类型 1：自主更新，2：强制更新，3：后台更新
        /// </summary>
        [Column("updateType")]
        public int UpdateType { get; set; }

        /// <summary>
        /// 更新类型 1：自主更新，2：强制更新，3：后台更新
        /// </summary>
        [Column("updateMethod")]
        public int updateMethod { get; set; }

        /// <summary>
        ///  当前版本
        /// </summary>
        [Column("versionNumber")]
        public String VersionNumber { get; set; }

        /// <summary>
        ///  更新包路径
        /// </summary>
        [Column("upgradeFilePath")]
        public String UpgradeFilePath { get; set; }

        /// <summary>
        ///  版本描述
        /// </summary>
        [Column("versionDescription")]
        public String VersionDescription { get; set; }

        /// <summary>
        ///  更新时间
        /// </summary>
        [Column("updateTime")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        ///  创建时间
        /// </summary>
        [Column("createTime")]
        public DateTime CreateTime { get; set; }

       
    }
}
